import { router } from '@ruifox-cms/utils'

router.addRoute({
  path: '/login',
  name: 'login',
  component: () => import('@/views/layout/LoginLayout'),
  redirect: '/login/index',
  children: [
    {
      path: 'index',
      name: 'loginIndex',
      component: () => import('@/views/login/Index'),
      meta: {
        whiteList: true
      }
    },
    {
      path: 'forget',
      name: 'loginForget',
      component: () => import('@/views/login/Forget'),
      meta: {
        whiteList: true
      }
    },
    {
      path: 'register',
      name: 'loginRegister',
      component: () => import('@/views/login/Register'),
      meta: {
        whiteList: true
      }
    },
    {
      path: 'authorize',
      name: 'loginAuthorize',
      component: () => import('@/views/login/Authorize'),
      meta: {
        whiteList: true
      }
    }
  ]
})

export default router